package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hu
 * @date 2025/3/9
 */
@Mapper
public interface StudentMapper {

     List<Student> listAll(StudentQueryParam queryParam);

     void delById(List<Long> ids);

    void add(Student student);

    Student getById(Integer id);

    void updateById(Student student);

    void updateScore(@Param("id") Integer id, @Param("score") Integer score);
}
